<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>布局 自适应</title>
    <style>
        .container {
            width: 1200px;
            height: 100px;
            display: flex;
        }

        .left {
            width: 200px;
            height: 100px;
            background: #096;
        }

        .center {
            flex: 1;
            height: 100px;
            background: #f40;
        }

        .right {
            width: 200px;
            height: 100px;
            background: #369;
        }


    </style>
</head>
<body>
    
    <div class="container">
        <div class="left"></div>
        <div class="center"></div>
        <div class="right"></div>
    </div>

</body>
</html>